import request from '@/utils/request'

// 提交扫码
export function record(data: any) {
    return request.post({ url: '/code/record', data }, { isAuth: true })
}

//查询记录-根据单号
export function getRecordByOrderNumber(order_number: any) {
    return request.get({ url: '/code/getRecordByOrderNumber', data: { order_number } }, { isAuth: true })
}

//查询记录
export function getRecord(data: any) {
    return request.get({ url: '/code/getRecord', data }, { isAuth: true })
}

//查询记录
export function getCategory() {
    return request.get({ url: '/code/getCategory' }, { isAuth: true })
}

//checkPassword 验证密码
export function checkPassword(data: any) {
    return request.post({ url: '/code/checkPassword', data }, { isAuth: true })
}
